{extend name="index/layout" /}

{block name="canonical"}
<link rel="canonical" href="https://{$site_domain}/contact">
{/block}

{block name="content"}
<!-- 联系我们 -->
<div class="bg-white rounded-lg shadow-md p-8 mb-8">
    <div class="flex items-center justify-center mb-8">
        <div class="w-16 h-16 bg-accent rounded-full flex items-center justify-center text-white mr-4">
            <i class="fas fa-envelope text-2xl"></i>
        </div>
        <h1 class="text-3xl font-bold text-primary">聯繫我們</h1>
    </div>
    
    <div class="prose max-w-none">
        <p class="mb-6 text-gray-700 leading-relaxed text-center max-w-3xl mx-auto">
            感謝您訪問壁響桌布網。如果您有任何問題、建議或合作意向，請隨時與我們聯繫，我們的團隊將盡快回覆您。
        </p>
        
        <div class="grid grid-cols-1 md:grid-cols-3 gap-8 mb-12">
            <div class="bg-gray-50 p-6 rounded-lg text-center">
                <div class="w-16 h-16 bg-primary bg-opacity-20 rounded-full flex items-center justify-center mx-auto mb-4">
                    <i class="fas fa-envelope text-2xl text-primary"></i>
                </div>
                <h3 class="font-bold text-lg mb-2">電子郵件</h3>
                <p class="text-gray-600 mb-3">我們通常會在24小時內回覆</p>
                <a href="mailto:contact@wallpaper.com" class="text-primary hover:underline">contact@wallecho.com</a>
            </div>
            
            <div class="bg-gray-50 p-6 rounded-lg text-center">
                <div class="w-16 h-16 bg-secondary bg-opacity-20 rounded-full flex items-center justify-center mx-auto mb-4">
                    <i class="fas fa-headset text-2xl text-secondary"></i>
                </div>
                <h3 class="font-bold text-lg mb-2">客服熱線</h3>
                <p class="text-gray-600 mb-3">週一至週五 9:00-18:00</p>
                <a href="tel:+886212345678" class="text-primary hover:underline">+886-2-7621-2543</a>
            </div>
            
            <div class="bg-gray-50 p-6 rounded-lg text-center">
                <div class="w-16 h-16 bg-accent bg-opacity-20 rounded-full flex items-center justify-center mx-auto mb-4">
                    <i class="fab fa-facebook-messenger text-2xl text-accent"></i>
                </div>
                <h3 class="font-bold text-lg mb-2">社群媒體</h3>
                <p class="text-gray-600 mb-3">關注我們獲取最新資訊</p>
                <div class="flex justify-center space-x-4">
                    <a href="#" class="text-gray-600 hover:text-primary">
                        <i class="fab fa-facebook-f"></i>
                    </a>
                    <a href="#" class="text-gray-600 hover:text-info">
                        <i class="fab fa-twitter"></i>
                    </a>
                    <a href="#" class="text-gray-600 hover:text-accent">
                        <i class="fab fa-instagram"></i>
                    </a>
                </div>
            </div>
        </div>
        
        <div class="bg-light p-8 rounded-lg mb-12">
            <h2 class="text-2xl font-bold text-gray-800 mb-6 text-center">聯繫表單</h2>
            <form action="" method="post" class="max-w-2xl mx-auto">
                <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
                    <div>
                        <label for="name" class="block text-gray-700 font-medium mb-2">姓名</label>
                        <input type="text" id="name" name="name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary" required>
                    </div>
                    <div>
                        <label for="email" class="block text-gray-700 font-medium mb-2">電子郵件</label>
                        <input type="email" id="email" name="email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary" required>
                    </div>
                </div>
                
                <div class="mb-6">
                    <label for="subject" class="block text-gray-700 font-medium mb-2">主題</label>
                    <select id="subject" name="subject" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
                        <option value="general">一般諮詢</option>
                        <option value="support">技術支援</option>
                        <option value="business">商務合作</option>
                        <option value="feedback">意見反饋</option>
                        <option value="other">其他</option>
                    </select>
                </div>
                
                <div class="mb-6">
                    <label for="message" class="block text-gray-700 font-medium mb-2">訊息內容</label>
                    <textarea id="message" name="message" rows="6" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary" required></textarea>
                </div>
                
                <div class="mb-6">
                    <label class="inline-flex items-center">
                        <input type="checkbox" name="privacy" class="form-checkbox h-5 w-5 text-primary" required>
                        <span class="ml-2 text-gray-700">我已閱讀並同意<a href="/privacy" class="text-primary hover:underline">隱私政策</a></span>
                    </label>
                </div>
                
                <div class="text-center">
                    <button type="submit" class="inline-block bg-primary hover:bg-purple-700 text-white font-bold py-3 px-8 rounded-lg transition duration-300">
                        發送訊息
                    </button>
                </div>
            </form>
        </div>
        
        <h2 class="text-2xl font-bold text-gray-800 mb-6 text-center">常見問題</h2>
        
        <div class="space-y-4 mb-12 max-w-3xl mx-auto">
            <div class="border border-gray-200 rounded-lg">
                <button class="w-full flex justify-between items-center p-4 text-left font-medium focus:outline-none">
                    <span>如何下載桌布？</span>
                    <i class="fas fa-chevron-down text-gray-500"></i>
                </button>
                <div class="p-4 border-t border-gray-200 text-gray-700">
                    點擊您喜歡的桌布進入詳情頁，然後點擊下載按鈕即可。我們提供多種解析度選項，您可以選擇最適合您設備的尺寸。下載完成後，您可以通過設備的設置將其設為桌布。
                </div>
            </div>
            
            <div class="border border-gray-200 rounded-lg">
                <button class="w-full flex justify-between items-center p-4 text-left font-medium focus:outline-none">
                    <span>下載桌布需要付費嗎？</span>
                    <i class="fas fa-chevron-down text-gray-500"></i>
                </button>
                <div class="p-4 border-t border-gray-200 text-gray-700">
                    壁響桌布網上的大部分桌布都是免費提供下載的。我們目前不需要用戶註冊或訂閱，即可下載高品質桌布。未來我們可能會推出會員服務，提供更多獨家內容和高級功能。
                </div>
            </div>
            
            <div class="border border-gray-200 rounded-lg">
                <button class="w-full flex justify-between items-center p-4 text-left font-medium focus:outline-none">
                    <span>我想提交我自己創作的桌布，該怎麼做？</span>
                    <i class="fas fa-chevron-down text-gray-500"></i>
                </button>
                <div class="p-4 border-t border-gray-200 text-gray-700">
                    我們非常歡迎創作者提交原創桌布！請通過上方的聯繫表單與我們取得聯繫，選擇「商務合作」選項，並在訊息中附上您的作品連結或作品集。我們的編輯團隊會在收到後進行審核。
                </div>
            </div>
            
            <div class="border border-gray-200 rounded-lg">
                <button class="w-full flex justify-between items-center p-4 text-left font-medium focus:outline-none">
                    <span>我發現一張桌布可能侵犯了版權，應該怎麼辦？</span>
                    <i class="fas fa-chevron-down text-gray-500"></i>
                </button>
                <div class="p-4 border-t border-gray-200 text-gray-700">
                    壁響桌布網尊重知識產權。如果您認為某張桌布侵犯了版權，請通過上方的聯繫表單告知我們，選擇「其他」選項，並提供相關詳細信息。我們會立即審核並採取適當措施。
                </div>
            </div>
        </div>
        
        <div class="text-center text-gray-700 mt-12">
            <p>如果您有其他問題，請隨時聯繫我們，我們樂意為您提供幫助。</p>
            <p class="mt-2">工作時間：週一至週五 9:00-18:00 (台灣時間)</p>
        </div>
    </div>
</div>
{/block}

{block name="script"}
<script>
$(document).ready(function() {
    // FAQ手风琴效果
    $('.border-gray-200 button').click(function() {
        $(this).next().slideToggle();
        $(this).find('i').toggleClass('fa-chevron-down fa-chevron-up');
    });
    
    // 隐藏所有FAQ答案，只保留问题
    $('.border-gray-200 button + div').hide();
});
</script>
{/block} 